import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/pokerActivateAwardInfo',
    method: 'post',
    data
  })
}

export function addTeam(data) {
  return request({
    url: 'api/kingTeam',
    method: 'post',
    data
  })
}

export function list(param) {
  return request({
    url: 'api/pokerActivateAwardInfo',
    method: 'get',
    params: param
  })
}

export function del(param) {
  return request({
    url: 'api/pokerActivateAwardInfo/delete',
    method: 'get',
    params: param
  })
}

export function delTeam(param) {
  return request({
    url: 'api/kingTeam',
    method: 'delete',
    params: param
  })
}

export function edit(data) {
  return request({
    url: 'api/pokerActivateAwardInfo',
    method: 'put',
    data
  })
}

export function teamList(param) {
  return request({
    url: 'api/kingTeam',
    method: 'get',
    params: param
  })
}

export default { add, edit, del, list, teamList, addTeam }
